package com.yuntcm.group6.med_booking.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuntcm.group6.med_booking.entity.Department;
import com.yuntcm.group6.med_booking.mapper.DepartmentMapper;
import com.yuntcm.group6.med_booking.service.DepartmentService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentServicelmpl extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {


    @Override
    public List<Department> ListAllDepartments() {
        return baseMapper.selectList(null);
    }
}
